//
// Created by Tony on 2024/8/2.
//

#ifndef PARSER_SIMPLE_STMT_H
#define PARSER_SIMPLE_STMT_H

#include "../../AstList.h"

namespace Parser {

class SimpleStmt : public AstList {
    string nodeName;

public:
    explicit SimpleStmt(const vector<shared_ptr<Ast>>& children) : AstList(children) {
        nodeName = __func__;
    }

    shared_ptr<Ast> getExpr() { return child(0); }

    int32_t accept(Compiler::Visitor* visitor) override;
};

} // namespace Parser

#endif // PARSER_SIMPLE_STMT_H
